<include file="../top" />
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<script type='text/javascript'>
$(document).ready(function(){

  $(".box").toggle(
   function () {

     $("input:checkbox").attr("checked",true);
   },
   function () {

     $("input:checkbox").attr("checked",false);
   }
);


})
</script>

<style style='text/css'>

table {
  background: #FFF;
  border-top: 10px solid #FFF;
  border-bottom: 10px solid #FFF;
  width: 99%;

}

th {
  line-height: 24px;
  background: #BBDDE5 url("__APP__/images/bg_repx.gif") repeat-x;
  white-space: nowrap;
    line-height:38px;
  font-weight:bold;
}

td {
  padding:5px 5px 5px 0;
  text-align:left;
  font-size:12px;
}
a{
  text-decoration:none;

}
th a{
  color:#888;
}
select{
font-size:12px;

}
input{
font-size:12px;

}


</style>
        <div id="right">
        <div style='width:900px;height:5px;background-color:#a1d2ff;margin-top:8px;'></div>
        <div id='search' style='background-color:#ddd;font-size:12px;'>
        <form name='msg_list' method='post' action='Msg'>
               &nbsp;&nbsp;&nbsp;查询：
        <select name='cate_sel'>
		    <option value='0' selected>所以分类</option>
             <volist name='list_cate' id ='list'>
                <option value='{$list.cate_id}|{$list.bpath}'>
                     <php>
				              $spa ='';
				           for($i=0;$i<$list['count'];$i++){
			                  echo $spa.='&nbsp;';
				           };
				           echo $spa;
				    </php>{$list.cate_name}
                </option>
             </volist>
       </select>
       <select name='audit'>
       		<option value=''>审核与否</option>
       		<option value='0'>未审核</option>
       		<option value='1'>已经审核</option>
       </select>
       <select name='mk_top'>
       		<option value=''>置顶与否</option>
       		<option value='0'>未置顶</option>
       		<option value='1'>置顶</option>
       </select>
       编号：<input type='text' name='id' width='100px' />
       发布者：<input type='text' name='username' width='100px' />
       <input name='sub' type='submit' value='search'/>
       </form>
        </div>
        <div style='width:900px;height:5px;background-color:#a1d2ff;margin-top:8px;'></div>
           <div style='width:850px;margin-right:auto;margin-left:auto;'>
              <table cellpadding="3" cellspacing="1">
  <tbody>

  <tr>
    <th>
      <input class='box' type="checkbox" checked></th>
      <th width='90px'><a href='Msg?order=id' title='点击按编号数排序'>编号(5)</a></th>
      <th width='90px'>发布者(5)</th>
      <th width='100px'>得分(5)</th>
      <th width='100px'>内容类型(5)</th>
      <th>发布内容(16)</th>
      <th><a href='Msg?order=comm_count' title='点击按评论数排序'>评论数</a></th>
      <th><a href='Msg?order=time' title='点击按编号数排序'>发布时间</a></th>
      <th width='120px'>del，top，audit</th>

  </tr>

  <form name='che_box' method='post' action='check'>
  <volist name='list_msg' id ='list'>
		      <tr>
		         <td width='20x'><input value='{$list.id}' name='checkbox[]' type="checkbox"></td>
	              <td>GDQY{$list.id}</td>
	              <td>{$list.username}</td>
	              <td>{$list.get}分</td>
	              <td>{$list.cate_name}</td>

	              <php>

	                 if(strlen($list['content']) <= 30){
                        echo '<td width="200px"><a title="'.$list['content'].'">'.$list['content'].'</a></td>';
	                 }else{
	                    echo '<td width="200px"><a title="'.$list['content'].'">'.substr_replace($list['content'],'...',15).'</a></td>';
	                 }
                   echo ' <td>'.$list['comm_count'].'</td>';
                   echo '<td width="80px">'.date('Y-m-d',$list['time']).'</td>'
	              </php>

                 <td style="text-align:center">
                   <a href='del_msg?id={$list.id}'><image src='__APP__/images/icon_trash.gif'></a>&nbsp;
                   <php>
                     if($list['mk_top']=='1'){
                     echo "<a href='mktop_msg?t=0&id=".$list[id]."'>noT</a>";
                     }else{
                       echo "<a href='mktop_msg?t=1&id=".$list[id]."'><image src='__APP__/images/mktop.gif'></a>";
                     }

                   </php>

                   <php>
                     if($list['audit']=='1'){
                     echo "<a href='audit_msg?t=0&id=".$list[id]."'><image src='__APP__/images/icon_drop.gif'></a>";
                     }else{
                       echo "<a href='audit_msg?t=1&id=".$list[id]."'><image src='__APP__/images/icon_audit.gif'></a>";
                     }

                   </php>
                   <a style='font-size:10px;' href='comm_detail?id={$list.id}' class="thickbox" >评论</a>
                   </td>


              </tr>
	</volist>
    <tr>
    <td>
      <input type="image" border="0" name="all_del_sub" src="__APP__/images/icon_trash.gif"  alt="删除全选" onClick="this.form.submit()">
    </td>
    <td style='text-align:right;font-size:12px;'>mk_top：</td>
    <td>
      <select name='all_top'>
	      <option value='1'>mk_top</option>
	      <option value='0'>no_top</option>
      </select>

    </td>
    <td style='text-align:left;font-size:12px;'><input name='all_top_sub' type='submit'width='15px' value='ok'>&nbsp;&nbsp;&nbsp;&nbsp;审核：</td>
    <td>
      <select name='all_audit'>
	      <option value='1'>audit</option>
	      <option value='0'>no_audit</option>
      </select>
     </td>
     <td><input name='all_audit_sub' type='submit' width='15px' value='ok'></td>

    </tr>
	</form>
  </tbody>

  </table>
  {$page}
          </div>
</div>

</body>
</html>